﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="EM.admin.Users._default" %>

<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="radA" %>
<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="radG" %>
<%@ Register Src="~/Common/PageName.ascx" TagName="PageName" TagPrefix="uc1" %>
<%@ Register Src="~/Common/SectionName.ascx" TagName="SectionName" TagPrefix="uc3" %>
<%@ Register Src="~/Common/Header.ascx" TagName="Header" TagPrefix="uc2" %>
<%@ Register Src="~/Common/Footer.ascx" TagName="Footer" TagPrefix="uc4" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link  runat="server" id="linkCss" rel="stylesheet" href="~/css/master.css" type="text/css"/>
    <link  runat="server" id="linkcssbuttons" rel="stylesheet" href="~/css/buttons.css" type="text/css"/>
</head>
<script src="../../js/PopUp.js" language="javascript"></script>
<body>
    <form id="form1" runat="server">
        <table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
          <tr>
            <td  class="TdMainTop"> <uc2:Header ID="Header1" runat="server"></uc2:Header></td>
        </tr>
            <tr>
                <td class="TdMainContent" valign="top">
                    <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td class="TdPageName" colspan="2"><uc1:PageName id="ucPageName" SHOWBOOKMARKBUTTON= "true"  PAGEID="8"  runat="server"></uc1:PageName></td>
                        </tr>
                        <tr>
                            <td id="TdMainRight" valign="top">
                                <div id="ContentRight">
                                    <div style="width:950px;" class="SearchBox">
                                        <table border="0" cellspacing="8" cellpadding="0" width="100%"> 
                                            <tr>
                                                <td style="width:80px;height:24;"><label>Kullanıcı Adı:</label></td>
                                                <td style="width:150px;" ><asp:TextBox ID="txtUsername" runat="server" class="Editinput" Width="150"></asp:TextBox></td>
                                                <td style="width:40px;"><label>Durum:</label></td>
                                                <td style="width:150px;" align="left"><asp:DropDownList ID="ddlStatus" runat="server" Width="150"></asp:DropDownList></td>
                                                <td align="right">
                                                    <asp:LinkButton ID="btnSearch" style="float:right;" CssClass="btn_left xp_find" runat="server" OnClick="btnSearch_Click" >
                                                        <strong class="btn_rigth_xp xp">Ara</strong>
                                                    </asp:LinkButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <div id="GrdDivMaster">
                                        <radG:RadGrid ID="rgMaster" runat="server" Skin="master" GridLines="None" PageSize="20" AllowPaging="True" 
                                        AllowSorting="True" Width="950" AutoGenerateColumns="False" EnableAJAX="true" ShowStatusBar="true" 
                                        OnNeedDataSource="rgMaster_NeedDataSource"  OnItemDataBound="rgMaster_ItemDataBound"
                                        LoadingTemplateTransparency="55" EnableAJAXLoadingTemplate="True" >
                                        <ClientSettings Selecting-AllowRowSelect="false" ></ClientSettings>
                                        <PagerStyle Mode="NumericPages" />
                                            <MasterTableView GridLines="None" DataKeyNames="USERID">
                                                <Columns>
                                                    <radG:GridBoundColumn UniqueName="USERCODE" HeaderText="Kullanıcı Kodu" DataField="USERCODE">
                                                        <HeaderStyle HorizontalAlign="left" Width="150" />
                                                        <ItemStyle HorizontalAlign="left" Width="150" />
                                                    </radG:GridBoundColumn>
                                                    <radG:GridBoundColumn UniqueName="USERDESC" HeaderText="Kullanıcı Adı" DataField="USERDESC">
                                                        <HeaderStyle Width="160px"></HeaderStyle>
                                                    </radG:GridBoundColumn>
                                                    <radG:GridBoundColumn UniqueName="USEREMAIL" HeaderText="Email" DataField="USEREMAIL">
                                                        <HeaderStyle Width="90px"></HeaderStyle>
                                                    </radG:GridBoundColumn>
                                                    <radG:GridBoundColumn UniqueName="USERGSM" HeaderText="GSM" DataField="USERGSM">
                                                        <HeaderStyle Width="90px"></HeaderStyle>
                                                    </radG:GridBoundColumn>
                                                    <radG:GridBoundColumn UniqueName="STATUSNAME" HeaderText="Durum" DataField="STATUSNAME">
                                                        <HeaderStyle Width="70px"></HeaderStyle>
                                                    </radG:GridBoundColumn>
                                                    <radG:GridBoundColumn UniqueName="STARTDATE" DataField="STARTDATE" HeaderText="Başlangıç Tarihi" DataFormatString="{0:dd.MM.yyyy}">
                                                        <HeaderStyle HorizontalAlign="left" Width="110" />
                                                        <ItemStyle HorizontalAlign="left" />
                                                    </radG:GridBoundColumn>
                                                    <radG:GridBoundColumn UniqueName="ENDDATE" DataField="ENDDATE" HeaderText="Bitiş Tarihi" DataFormatString="{0:dd.MM.yyyy}">
                                                        <HeaderStyle HorizontalAlign="left" Width="90" />
                                                        <ItemStyle HorizontalAlign="left" />
                                                    </radG:GridBoundColumn>
                                                    <radG:GridTemplateColumn  UniqueName="Edit" HeaderText="İşlemler">
                                                        <HeaderStyle HorizontalAlign="left"  Width="120" />
                                                        <ItemStyle HorizontalAlign="left" Wrap="false" />
                                                        <ItemTemplate>
                                                            <div style="white-space:nowrap">
                                                                <a href="javascript:openWin('default_edit.aspx?task=Update&ID=<%#Eval("USERID") %>','winEdit',1,1000,550,0,0)" id="aEdit"><asp:Label ID="lblEdit" runat="server">Düzenle</asp:Label></a> |
                                                                <a href="javascript:openWin('SessionHeader.aspx?task=Read&ID=<%#Eval("USERID") %>','winEdit',1,530,550,0,0)" id="a1"><asp:Label ID="Label1" runat="server">Oturumlar</asp:Label></a>
                                                            </div>
                                                        </ItemTemplate>
                                                    </radG:GridTemplateColumn>
                                                </Columns>                
                                            </MasterTableView>
                                        </radG:RadGrid>
                                    </div>
                                    <br />
                                    <div style="width:1050px;">
                                        <a id="btnInsert" class="btn_left xp_add"  href="javascript:openWin('default_edit.aspx?task=Insert&ID=-1','winEdit',1,1000,550,0,0)">
                                            <strong class="btn_rigth_xp xp">Ekle</strong>
                                        </a>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
           <tr>
                <td style="vertical-align:bottom;" class="MasterFooter"><uc4:Footer id="Footer1" runat="server"></uc4:Footer></td>
            </tr>

        </table>
        <radA:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <radA:AjaxSetting AjaxControlID="btnSearch">
                    <UpdatedControls>
                        <radA:AjaxUpdatedControl ControlID="rgMaster" />
                    </UpdatedControls>
                </radA:AjaxSetting>
            </AjaxSettings>
        </radA:RadAjaxManager>
    </form>
</body>
</html>
